﻿using SX.BaseService.Service.Implement.SysRole;
using SX.Core;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SX.BaseService.Service.Interface
{
    /// <summary>
    /// 角色服务
    /// </summary>
    public interface ISysRoleService
    {
        /// <summary>
        /// 查询角色
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Query(RoleQueryModel model);
        /// <summary>
        /// 添加角色
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Add(RoleAddModel model);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IApiResult> Delete(List<string> ids);
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Update(RoleUpdateModel model);
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IApiResult> GetById(string id);
    }
}
